package com.md.youyouhui.net.repo;

import android.arch.lifecycle.LiveData;

import com.md.youyouhui.common.Resource;
import com.md.youyouhui.net.ApiServiceFac;
import com.md.youyouhui.utils.calladapter.ResourceConvertUtils;

/**
 * Created by AdministratorZJ
 * on 2018/5/25.
 */

public class ReceiveCardRepo {
    private static ReceiveCardRepo INSTANCE;

    public static ReceiveCardRepo newInstance() {
        if (null == INSTANCE) {
            INSTANCE = new ReceiveCardRepo();
        }
        return INSTANCE;
    }


    public LiveData<Resource<Object>> receiveCard(String consignee, String mobilePhone, String area, String detailedAddress, String postcode, int type,
                                                 String rechargeId, String couponId, int monthly, String totalPayAmount, String payType) {
        return ResourceConvertUtils.convertResource(ApiServiceFac.get().receiveCard(consignee, mobilePhone, area, detailedAddress, postcode, type, rechargeId, couponId, monthly, totalPayAmount, payType));
    }


}
